<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Image Gallery with Links</title>
    <style>
        body {
            font-family: Arial, sans-serif;
        }
        .gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            justify-content: center;
            padding: 20px;
        }
        .gallery a {
            text-decoration: none;
            color: inherit;
        }
        .gallery img {
            width: 200px;
            height: 150px;
            object-fit: cover;
            border: 2px solid #ddd;
            border-radius: 8px;
            transition: transform 0.2s, border-color 0.2s;
        }
        .gallery img:hover {
            transform: scale(1.05);
            border-color: #555;
        }
    </style>
</head>
<body>
<h1 style="text-align: center;">Image Gallery</h1>
<div class="gallery">
    <a href="/course" target="_blank">
        <img src="./image/course1.png" alt="Image 1">
    </a>
    <a href="https://www.example.com/page2" target="_blank">
        <img src="./image/course2.png" alt="Image 2">
    </a>
    <a href="https://www.example.com/page3" target="_blank">
        <img src="./image/course3.png" alt="Image 3">
    </a>
    <a href="https://www.example.com/page4" target="_blank">
        <img src="./image/course4.png" alt="Image 4">
    </a>
    <a href="https://www.example.com/page5" target="_blank">
        <img src="./image/course5.png" alt="Image 5">
    </a>
</div>
<script>
    function findCourseById(){
        fetch('/findCourseById?id='+imageId)
    }
</script>
</body>
</html>
